package by.epam.xslttask.logger;

import org.apache.log4j.Logger;

/**
 * Created by IntelliJ IDEA.
 * User: Darya_Hrishanovich
 * Date: 7/6/12
 * Time: 4:46 AM
 * To change this template use File | Settings | File Templates.
 */
public class XSLTLogger {
    public static void logMessage(String message, Class cl, LoggerType loggerType) {
        Logger logger = Logger.getLogger(cl);
        switch (loggerType) {
            case INFO:
                logger.info(message);
                break;
            case ERROR:
                logger.error(message);
                break;
            case WARNING:
                logger.warn(message);
                break;
        }
    }
}
